package santeclair.connexion.domaine.parametrage;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Fetch;
import org.hibernate.annotations.FetchMode;

import santeclair.connexion.constantes.ConnexionConstantes;

/**
 * The persistent class for the tr_service_annulation_partenaire database table.
 * 
 */
@Entity
@Table(name = "tr_service_annulation_partenaire", catalog = ConnexionConstantes.SCHEMA_NAME)
public class ServiceAnnulationPartenaire extends ServicePartenaire {
    private static final long serialVersionUID = -1024474484786057835L;

    // bi-directional many-to-one association to StructureTrame
    @ManyToOne(fetch = FetchType.EAGER)
    @Fetch(FetchMode.JOIN)
    @JoinColumn(name = "IDENTIFIANT_STRUCTURE_TRAME_ALLER_ANNULATION", nullable = false)
    private StructureTrame structureTrameAllerAnnulation;

    // bi-directional many-to-one association to StructureTrame
    @ManyToOne(fetch = FetchType.EAGER)
    @Fetch(FetchMode.JOIN)
    @JoinColumn(name = "IDENTIFIANT_STRUCTURE_TRAME_RETOUR_ANNULATION", nullable = false)
    private StructureTrame structureTrameRetourAnnulation;

    public ServiceAnnulationPartenaire() {
    }

    public StructureTrame getStructureTrameAllerAnnulation() {
        return this.structureTrameAllerAnnulation;
    }

    public void setStructureTrameAllerAnnulation(StructureTrame trStructureTrame1) {
        this.structureTrameAllerAnnulation = trStructureTrame1;
    }

    public StructureTrame getStructureTrameRetourAnnulation() {
        return this.structureTrameRetourAnnulation;
    }

    public void setStructureTrameRetourAnnulation(StructureTrame trStructureTrame2) {
        this.structureTrameRetourAnnulation = trStructureTrame2;
    }

}
